<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<title><%= @title %></title>
		<%= stylesheet_link_tag "site" %>
		<%= stylesheet_link_tag "profile" %>
		<%= javascript_include_tag "application" %>
		<%= csrf_meta_tag %>
	</head>
	<body>
		<div id="whole_page">
			<div id="header">
				Expression
			</div>
			<div id="nav">
				<span style="float: right"> <% if logged_in? -%>
					<%= nav_link "Tu actividad", "user", "index" %> |
					<%= nav_link "Salir", "user", "logout" %>
					<% else -%>
					<%= nav_link "Registrarse", "user", "register" %> |
					<%= nav_link "Entrar",
					"user", "login" %>
					<% end -%> </span>
				<%= nav_link "Principal", "site" %> |
				<%= nav_link "Nosotros", "site", "about" %> |
				<%= nav_link "Ayuda", "site", "help" %> |
				<%= nav_link "Buscador", "community", "index" %> |
				<%= nav_link "Galeria", "galleries", "index" %> |
				<%= nav_link "Listas", "lists", "index" %> |
			</div>
			<div id="content">
				<% if flash[:notice] -%>
				<div id="notice">
					<%= flash[:notice] %>
				</div>
				<% end -%>
				<%= yield %>
				<br clear="all" />
			</div>
			<% if ENV["RAILS_ENV"] == "development" %>
			<div id="debug">
				<%= link_to_function("Params",  "$('#params_debug_info').toggle()") %> | <%= link_to_function("Session", "$('#session_debug_info').toggle()") %> |
				<%= link_to_function("Env",  "$('#env_debug_info').toggle()") %> | <%= link_to_function("Request",  "$('#request_debug_info').toggle()") %>
				<fieldset id="params_debug_info" class="debug_info" style="display: none">
					<legend>
						params
					</legend>
					<%= debug(params) %>
				</fieldset>
				<fieldset id="session_debug_info" class="debug_info" style="display: none">
					<legend>
						session
					</legend>
					<%= debug(session) %>
				</fieldset>
				<fieldset id="env_debug_info" class="debug_info" style="display: none">
					<legend>
						env
					</legend>
					<%= debug(request.env) %>
				</fieldset>
				<fieldset id="request_debug_info" class="debug_info" style="display: none">
					<legend>
						request
					</legend>
					<%= debug(request) %>
				</fieldset>
			</div>
			<% end %>
	</body>
</html>